#pragma once
#include <iostream>
#include "Sock.h"

class SNETWORK_API  Sock::CNluEventAccept : public Threads::ThreadObject
{
public:
    static Threads::ThreadObject *instance(void*);
	CNluEventAccept();
	void NewAccept();
    int execute(void *parr);
    paramArr *m_par;
private:    
    static CNluEventAccept* m_instance;    
    class CGarbo {public: ~CGarbo(){if (CNluEventAccept::m_instance) delete CNluEventAccept::m_instance;}};
    static CGarbo Garbo;	
};
